package com.msg.chestionar.to;

public class UtilizatorTO {
	private Long id;
	private String username;
	private String parola;
	private int tip;
	private boolean activ;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getParola() {
		return parola;
	}

	public void setParola(String parola) {
		this.parola = parola;
	}

	public boolean isAdmin(int tip) {
		return (tip == 1);

	}

	public int getTip() {
		return tip;
	}

	public void setTip(int tip) {
		this.tip = tip;

	}

	public boolean getActiv() {
		return activ;
	}

	public void setActiv(boolean activ) {
		this.activ = activ;
	}

}
